package Bank;

public class Stock
{
	private int		stockNumber;
	private double 	price;
	private String	nameOwner;
	
	public Stock(int stockNumber, double price, String nameOwner)
	{
		this.stockNumber	= stockNumber;
		this.price			= price;
		this.nameOwner		= nameOwner;
	}
	public String toString()
	{
		return nameOwner + " owns stock " + stockNumber + " and its current price is: " + price + ".";
	}
	public int getStockNumber()
	{
		return stockNumber;
	}
	public double getPrice()
	{
		return price;
	}
	public String getOwner()
	{
		return nameOwner;
	}
}
